#include<stdio.h>
int missingNumber2(int* nums, int numsSize)
{
	int val=0;
	for(int i=0;i<numsSize;++i)
	{
		val^=nums[i];
	}
	for(int i=0;i<numsSize+1;++i)
	{
		val^=i;
	}
	return val;
 } 
